/* 
	@Copyright (c) 2007 by Denis Riabtchik. All rights reserved. See license.txt and http://jgrouse.com for details@
	$Id: ContentSection.java 375 2008-03-08 20:50:41Z denis.riabtchik $
*/

package jgrouse.jgdoc.elements;

import java.io.Serializable;

import jgrouse.jgdoc.api.IContentSection;



public class ContentSection implements IContentSection, Serializable
{
	private static final long serialVersionUID = 8105683475226753548L;
	private String m_text;
	
	public ContentSection(String pContent)
	{
		m_text = pContent;
	}
	
	public String toString()
	{
		StringBuffer buf = new StringBuffer("<contentSection><![CDATA[").append(m_text).append("]]></contentSection>");
		return buf.toString();
	}
	
	public void setText(String pText)
	{
		m_text = pText;
	}

	/* (non-Javadoc)
	 * @see jgrouse.jgdoc.elements.IContentSection#getContentSection()
	 */
	public String getText()
	{
		return m_text;
	}

	public boolean isLink()
	{
		return false;
	}
	
	
}
